package com.edu.dao;

import com.edu.pojo.Mission;
import com.edu.pojo.users;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface MissionMapper {
    int addMission(Mission mission);

    int updateMission(Mission mission);

    List<Mission> showAllMission(@Param("publishman") String publishman);

    List<Mission> showMyMission(@Param("memberNo") String memberNo);

    List<Mission> showNeedMission(@Param("status") Integer status,@Param("publishman") String publishman);

    int finishMission(@Param("finishPath")String finishPath,@Param("id")Integer id);

    int agreeThesisTitle(int id);

    int disagreeThesisTitle(int id);

    int approved(int id);

    int notApproved(int id);

    int deleteMission(@Param("id") int id);

    //查找一个用户
    Mission querymissionById(@Param("id")  Integer id);
}
